package com.qf.vote.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.vote.dao.TicketMapper;
import com.qf.vote.entity.Ticket;
import com.qf.vote.service.TicketService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author yyq
 * @since 2023-02-25
 */
@Service
public class TicketServiceImpl extends ServiceImpl<TicketMapper, Ticket> implements TicketService {

    @Transactional(propagation = Propagation.SUPPORTS)
    @Override
    public List<Ticket> getTicket() {
        List<Ticket> ticketList = list();
        return ticketList;
    }




}
